package my.mall.admin.api.pojo.goods.detail

import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import kotlin.properties.Delegates

class SkuInfo {
    var id: Long? = null
    var stockNum: @NotNull(message = "库存不能为空") @Min(value = 0, message = "库存必须大于0") Int by Delegates.notNull()
    lateinit var skuPrice: @NotBlank(message = "SKU价格不能为空") String
    lateinit var specIds: String
    var specValue: String? = null
    var specDetail: String? = null
    var skuImgUrl: String? = null
}
